package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-05-08
 * Time: 18:48
 */
interface IRuning{
    void run();
}
interface ISwining{
    void swin();
}

interface IAmphibious extends IRuning ,ISwining{
    //接口的继承关系
}

public class Testdemo1 implements IAmphibious {

    @Override
    public void run() {
        System.out.println("haha");
    }

    @Override
    public void swin() {
        System.out.println("hehe");
    }
}
